[INFO] cloning repository https://github.com/codeandplay/rust_in_action_examples
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/codeandplay/rust_in_action_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeandplay%2Frust_in_action_examples", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeandplay%2Frust_in_action_examples'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] eeb4d1a40dd3445150dec6122f9a2f2011da65ae
[INFO] building codeandplay/rust_in_action_examples against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeandplay%2Frust_in_action_examples" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/codeandplay/rust_in_action_examples on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/codeandplay/rust_in_action_examples
[INFO] finished tweaking git repo https://github.com/codeandplay/rust_in_action_examples
[INFO] tweaked toml for git repo https://github.com/codeandplay/rust_in_action_examples written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/codeandplay/rust_in_action_examples already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 60448f0ec6fcb690bae926e3887409cc2ea34f36f94cc61a854bbae0d17a96f3
[INFO] running `Command { std: "docker" "start" "-a" "60448f0ec6fcb690bae926e3887409cc2ea34f36f94cc61a854bbae0d17a96f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "60448f0ec6fcb690bae926e3887409cc2ea34f36f94cc61a854bbae0d17a96f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "60448f0ec6fcb690bae926e3887409cc2ea34f36f94cc61a854bbae0d17a96f3", kill_on_drop: false }`
[INFO] [stdout] 60448f0ec6fcb690bae926e3887409cc2ea34f36f94cc61a854bbae0d17a96f3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 6e52632a9245716823de78adb9476c886c191e42a9e7e542a431eb0d4acb3c12
[INFO] running `Command { std: "docker" "start" "-a" "6e52632a9245716823de78adb9476c886c191e42a9e7e542a431eb0d4acb3c12", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.88
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling once_cell v1.7.2
[INFO] [stderr]    Compiling regex-syntax v0.6.22
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling num-bigint v0.4.0
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]    Compiling thread_local v1.1.3
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling clap v2.33.3
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling num-complex v0.4.0
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling regex v1.4.3
[INFO] [stderr]    Compiling num v0.4.0
[INFO] [stderr]    Compiling example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `data`, which is owned by the current function
[INFO] [stdout]  --> src/bin/1_7_data_race.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 |     thread::spawn(|| {
[INFO] [stdout]   |                   ^^ may outlive borrowed value `data`
[INFO] [stdout] 7 |         data = 500;
[INFO] [stdout]   |         ---- `data` is borrowed here
[INFO] [stdout]   |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]  --> src/bin/1_7_data_race.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | /     thread::spawn(|| {
[INFO] [stdout] 7 | |         data = 500;
[INFO] [stdout] 8 | |     });
[INFO] [stdout]   | |______^
[INFO] [stdout] help: to force the closure to take ownership of `data` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]   |
[INFO] [stdout] 6 |     thread::spawn(move || {
[INFO] [stdout]   |                   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `data` as mutable more than once at a time
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 6  |       thread::spawn(|| {
[INFO] [stdout]    |       -             -- first mutable borrow occurs here
[INFO] [stdout]    |  _____|
[INFO] [stdout]    | |
[INFO] [stdout] 7  | |         data = 500;
[INFO] [stdout]    | |         ---- first borrow occurs due to use of `data` in closure
[INFO] [stdout] 8  | |     });
[INFO] [stdout]    | |______- argument requires that `data` is borrowed for `'static`
[INFO] [stdout] 9  | 
[INFO] [stdout] 10 |       thread::spawn(|| {
[INFO] [stdout]    |                     ^^ second mutable borrow occurs here
[INFO] [stdout] 11 |           data = 1000;
[INFO] [stdout]    |           ---- second borrow occurs due to use of `data` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `data`, which is owned by the current function
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 |     thread::spawn(|| {
[INFO] [stdout]    |                   ^^ may outlive borrowed value `data`
[INFO] [stdout] 11 |         data = 1000;
[INFO] [stdout]    |         ---- `data` is borrowed here
[INFO] [stdout]    |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | /     thread::spawn(|| {
[INFO] [stdout] 11 | |         data = 1000;
[INFO] [stdout] 12 | |     });
[INFO] [stdout]    | |______^
[INFO] [stdout] help: to force the closure to take ownership of `data` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]    |
[INFO] [stdout] 10 |     thread::spawn(move || {
[INFO] [stdout]    |                   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `data` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 6  |       thread::spawn(|| {
[INFO] [stdout]    |       -             -- mutable borrow occurs here
[INFO] [stdout]    |  _____|
[INFO] [stdout]    | |
[INFO] [stdout] 7  | |         data = 500;
[INFO] [stdout]    | |         ---- first borrow occurs due to use of `data` in closure
[INFO] [stdout] 8  | |     });
[INFO] [stdout]    | |______- argument requires that `data` is borrowed for `'static`
[INFO] [stdout] ...
[INFO] [stdout] 14 |       println!("{}", data);
[INFO] [stdout]    |                      ^^^^ immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `5_36_cpu_calling_function`
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider adding a `main` function to `src/bin/5_36_cpu_calling_function.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0373, E0499, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0373`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `save_to`
[INFO] [stdout]   --> src/bin/3_19_read_trait.rs:10:26
[INFO] [stdout]    |
[INFO] [stdout] 10 |     fn read(self: &File, save_to: &mut Vec<u8>) -> Result<usize, String> {
[INFO] [stdout]    |                          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_save_to`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `example`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "6e52632a9245716823de78adb9476c886c191e42a9e7e542a431eb0d4acb3c12", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6e52632a9245716823de78adb9476c886c191e42a9e7e542a431eb0d4acb3c12", kill_on_drop: false }`
[INFO] [stdout] 6e52632a9245716823de78adb9476c886c191e42a9e7e542a431eb0d4acb3c12
